package com.pxst.fx.req;

import com.pxst.entity.Insert;
import com.pxst.req.BasePageRsp;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class SysFxOrderEntityReq extends BasePageRsp {


    @ApiModelProperty(value = "商户Id")
    private List<String> shId;

    /**
     * 5选1
     */
    @ApiModelProperty(value = "Id,五选一")
    private String altId;

    @ApiModelProperty(value = "子Id,五选一")
    private String fxAltId;

    @ApiModelProperty(value = "交易代码,五选一")
    private String trCode;

    @ApiModelProperty(value = "账户代码,五选一")
    private String from;

    @ApiModelProperty(value = "To,五选一")
    private String to;

    //private String beneficiary;

    @NotBlank(message = "币种不能为空")
    @ApiModelProperty(value = "币种", required = true)
    private String currency;

    /**
     * 1.等待
     * 2.正在操作
     * 3.交易成功
     * 4.等待失败后手工操作
     * 5.失败，不可更改状态
     */
    @ApiModelProperty(value = "讯银回传状态")
    private List<Integer> status;

    @ApiModelProperty(value = "银行卡群ID")
    private List<String> pgId;

    @ApiModelProperty(value = "创建起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    @ApiModelProperty(value = "创建结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    @ApiModelProperty(value = "开始更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedStartDate;

    @ApiModelProperty(value = "最后更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedEndDate;

    @ApiModelProperty(value = "开始完成时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completedStartTime;

    @ApiModelProperty(value = "最后完成时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completedEndTime;


}
